<?PHP


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://saedevelop.sinaapp.com/api/uc.php?code=a4b7faK36dN0G6GID7nGl7P3w9v1HIclHebkVzwinCptZwoU4Y%2FxjR07JvmH6Pa1j0gb9hh3tvQ");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1');

$content = curl_exec($ch);
var_dump($content);
if($content === false){
    echo 'Curl error: ' .curl_errno($ch).':'. curl_error($ch)."\r\n";
}
$info = curl_getinfo($ch);
echo '<hr/>';
print_r($info);
curl_close($ch);
echo '<hr/>';
$f = new SaeFetchurl();		
$return = $f->fetch('http://saedevelop.sinaapp.com/api/uc.php?code=a4b7faK36dN0G6GID7nGl7P3w9v1HIclHebkVzwinCptZwoU4Y%2FxjR07JvmH6Pa1j0gb9hh3tvQ');
var_dump($return);
echo '<hr/>';

highlight_file(__FILE__);


?>